function selectPerson(valueInputId, textInputId, selectType) {
    var height = "450";
	var width = "500";
	var topheight = (window.screen.height - height) / 2;
	var leftwidth = (window.screen.width - width) / 2;
    window.open(rootURL + '/sys/personSelect!initPersonSelect.action?valueInputId=' + valueInputId + '&textInputId=' + textInputId + '&selectType=' + selectType,"人员选择", "height=" + height + ",width=" + width + ",top=" + topheight + ",left=" + leftwidth + ",alwaysRaised=yes,depended=yes,titlebar=no,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,z-look=yes")
}

function selectPosition(valueInputId, textInputId, selectType) {
    var height = "500";
	var width = "600";
	var topheight = (window.screen.height - height) / 2;
	var leftwidth = (window.screen.width - width) / 2;
    window.open(rootURL +　'/sys/positionSelect!listPositionSelect.action?valueInputId=' + valueInputId + '&textInputId=' + textInputId + '&selectType=' + selectType,"岗位选择", "height=" + height + ",width=" + width + ",top=" + topheight + ",left=" + leftwidth + ",alwaysRaised=yes,depended=yes,titlebar=no,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,z-look=yes")
}

function selectStaff(rootOrgId, valueInputId, textInputId, selectType) {
    var height = "600";
	var width = "800";
	var topheight = (window.screen.height - height) / 2;
	var leftwidth = (window.screen.width - width) / 2;
    window.open(rootURL +　'/sys/orgPosStaff!selectStaff.action?returnType=staff&organization.id=' + rootOrgId + '&valueInputId=' + valueInputId + '&textInputId=' + textInputId + '&selectType=' + selectType,"员工选择", "height=" + height + ",width=" + width + ",top=" + topheight + ",left=" + leftwidth + ",alwaysRaised=yes,depended=yes,titlebar=no,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,z-look=yes")
}

function selectUsers(rootOrgId, valueInputId, textInputId, selectType) {
    var height = "600";
	var width = "800";
	var topheight = (window.screen.height - height) / 2;
	var leftwidth = (window.screen.width - width) / 2;
    window.open(rootURL +　'/sys/users!main.action?returnType=users&organization.id=' + rootOrgId + '&valueInputId=' + valueInputId + '&textInputId=' + textInputId + '&selectType=' + selectType,"用户选择", "height=" + height + ",width=" + width + ",top=" + topheight + ",left=" + leftwidth + ",alwaysRaised=yes,depended=yes,titlebar=no,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,z-look=yes")
}

function selectOrgPerson(rootOrgId, valueInputId, textInputId, selectType) {
    var height = "600";
	var width = "800";
	var topheight = (window.screen.height - height) / 2;
	var leftwidth = (window.screen.width - width) / 2;
    window.open(rootURL +　'/sys/orgPosStaff!selectStaff.action?returnType=person&organization.id=' + rootOrgId + '&valueInputId=' + valueInputId + '&textInputId=' + textInputId + '&selectType=' + selectType,"员工选择", "height=" + height + ",width=" + width + ",top=" + topheight + ",left=" + leftwidth + ",alwaysRaised=yes,depended=yes,titlebar=no,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,z-look=yes")
}

function selectOrg(valueInputId, textInputId) {
    var height = "400";
	var width = "350";
	var topheight = (window.screen.height - height) / 2;
	var leftwidth = (window.screen.width - width) / 2;
    window.open(rootURL +　'/sys/orgSelect!main.action?valueInputId=' + valueInputId + '&textInputId=' + textInputId,"选择机构", "height=" + height + ",width=" + width + ",top=" + topheight + ",left=" + leftwidth + ",alwaysRaised=yes,depended=yes,titlebar=no,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no,z-look=yes")
}